package com.chem.lems.utils;

import java.util.ArrayList;
import java.util.List;

public class EChartsUtil {

    public static ECharts delECharts(String roleNmb, String roleName, String male, String female, String maleRate, String femaleRate) {

        Iabel iabel = new Iabel();
        iabel.setFormatter(iabel.getFormatter()
                .replace("${male}", male)
                .replace("${female}", female)
                .replace("${maleRate}", maleRate)
                .replace("${femaleRate}", femaleRate));
        iabel.setRich(new Rich());
        ECharts eCharts = new ECharts();
        eCharts.setName(roleName);
        eCharts.setValue(roleNmb);
        eCharts.setLabel(iabel);
        return eCharts;
    }
}
